package cn.ubeta.b2c.common;

/**
 * Created by denny on 2016/10/13.
 */

public class ListFragmentConfig {

    private int resItemLayout;
    private int spanLandscape;
    private int spanPortrait;

    public ListFragmentConfig(int resItemLayout, int spanPortrait, int spanLandscape) {
        this.resItemLayout = resItemLayout;
        this.spanPortrait = spanPortrait;
        this.spanLandscape = spanLandscape;
    }

    public ListFragmentConfig(int resItemLayout, int span) {
        this(resItemLayout, span, span);
    }

    public ListFragmentConfig(int resItemLayout) {
        this(resItemLayout, 1, 1);
    }

    public int getResItemLayout() {
        return resItemLayout;
    }

    public int getSpanLandscape() {
        return spanLandscape;
    }

    public int getSpanPortrait() {
        return spanPortrait;
    }
}
